package com.example.service.impl;

import com.example.entity.User;
import com.example.mapper.UserMapper;
import com.example.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @copyright (C), 2019-2022, Kkoo
 * @author: kkoo
 * @date: 2022/5/22 3:02 PM
 * @fileName: UserServiceImpl
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public int saveCode(User user) {
        return userMapper.saveCode(user);
    }

    @Override
    public User edit(String email) {
        return userMapper.edit(email);
    }

}
